import Vue from 'vue';
const setDeviceType = (num) => {
	if (num > 1200) {
		return 'pc';
	} else if (num > 576) {
		return 'pad';
	} else {
		return 'mobile';
	}
}
Vue.prototype.$deviceType = (() => {
	let screenWidth = window.innerWidth || 0;
	return setDeviceType(screenWidth);
	window.onresize = () => {
		screenWidth = window.innerWidth || 0;
		return setDeviceType(screenWidth);
	};
})();